home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Varsity Update 1998 August
/
SGI Varsity Update 1998 August.iso
/
dist
/
dist6.5
/
il_dev.idb
/
usr
/
include
/
il
/
ilVectorUtil.h.z
/
ilVectorUtil.h
Wrap
C/C++ Source or Header
|
1998-07-29
|
4KB
|
98 lines
#if 0
Copyright (c) 1991 SGI All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
The copyright notice above does not evidence any
actual or intended publication of such source code,
and is an unpublished work by Silicon Graphics, Inc.
This material contains CONFIDENTIAL INFORMATION that
is the property of Silicon Graphics, Inc. Any use,
duplication or disclosure not specifically authorized
by Silicon Graphics is strictly prohibited.
RESTRICTED RIGHTS LEGEND:
Use, duplication or disclosure by the Government is
subject to restrictions as set forth in subdivision
(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 52.227-7013, and/or in similar
or successor clauses in the FAR, DOD or NASA FAR
Supplement. Unpublished- rights reserved under the
Copyright Laws of the United States. Contractor is
SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
Mountain View, CA 94039-7311
#endif
/*
Vector utility routines
*/
#ifndef _ilVectorUtil_h_
#define _ilVectorUtil_h_
#if defined(IL2_5_COMPAT)
#include <il/ilCoord.h>
#endif
#include <ifl/iflCoord.h>
#include <il/ilPolyDef.h>
#ifdef __cplusplus
extern "C" {
#endif
void ilVClr(float *buf, int stride, int cnt);
void ilVMov(float *inBuf, int inStride, float *outBuf, int outStride, int cnt);
void ilVClip(float *inBuf, int inStride, float *outMin, float *outMax,
float *outBuf, int outStride, int cnt);
int ilVInRect(iflXYfloat *addr, iflXYfloat *inMin, iflXYfloat *inMax, int cnt);
int ilVOutRect(iflXYfloat *addr, iflXYfloat *inMin, iflXYfloat *inMax, int cnt);
void ilVMinMax(float *addr, int cnt, int stride, float *min, float *max);
void ilVGPoly(const ilPoly1D *coeff, float uStart, float uStep,
float *result, int stride, int count);
void ilVGPoly2D(const ilPoly2D *coeff, float uStart, float v, float uStep,
float *result, int stride, int count);
void ilCVAbs(float *a, int arstride, int aistride, float *c, int cstride, int
count);
void ilCVPhas(float *a, int arstride, int aistride, float *c, int cstride, int
count);
void ilCRVMul(float *a, int arstride, int aistride, float *b, int bstride,
float *c, int crstride, int cistride, int count);
void ilCVConj(float *a, int arstride, int aistride,
float *c, int crstride, int cistride, int count);
void ilCVSMul(float *a, int arstride, int aistride, float b,
float *c, int crstride, int cistride, int count);
void ilPolar(float *a, int arstride, int aistride,
float *c, int crstride, int cistride, int count);
void ilVLogz(float *a, int astride, float b, float *c, int cstride, int count);
void ilVSPow(float *a, int astride, float p, float *c, int cstride, int count);
void ilVExp(float *a, int astride, float *c, int cstride, int count);
void ilVRect(float *a, int arstride, int aistride,
float *c, int crstride, int cistride, int count);
void ilCVMul(float *a, int arstride, int aistride, float *b, int brstride,
int bistride, float *c, int crstride, int cistride, int count,
int iflag);
void ilCVDiv(float *a, int arstride, int aistride, float *b, int brstride,
int bistride, float *c, int crstride, int cistride, int count, int check);
void ilVMul(float *a, int astride, float *b, int bstride, float *c, int cstride, int count);
void ilVSq(float *a, int astride, float *c, int cstride, int count);
void ilVAdd(float *a, int astride, float *b, int bstride, float *c, int cstride, int count);
void ilVSMul(float *a, int astride, float b, float *c, int cstride, int count);
float** ilMatInv(float **mat, int n);
int ilLUdecomp(float **mat, int n, int *rowperm);
void ilLUlineq(float **lu, int n, int *rowperm, float *b);
float ilCholeskyDecompFloat(float** mat, int n, float* p);
void ilCholeskyBackSubFloat(float** mat, int n, float* p, float* b, float* x);
double ilCholeskyDecompDouble(double** mat, int n, double* p);
void ilCholeskyBackSubDouble(double** mat, int n, double* p, double* b, double* x);
#define ilCholeskyDecomp ilCholeskyDecompFloat
#define ilCholeskyBackSub ilCholeskyBackSubFloat
#ifdef __cplusplus
}
#endif
#endif